<%= devise_error_messages! %>
  
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
  <h2>Edit <%= resource_name.to_s.humanize %></h2>

  <div class="field w30">
    <%= f.label :email %>
    <%= f.email_field :email %>
  </div>

  <div class="field w30">
    <%= f.label :current_password %>
    <p>(we need your current password to confirm your changes)</p>
    <%= f.password_field :current_password %>
  </div>

  <div class="ux-collapsible collapsed w30" data-on-expanded="box grey">
    <span><a href="#" class="fsettings">Change my password</a></span>
    <div class="ux-content">
      
  <div class="field w30">
    <%= f.label :password %> 
    <p>(leave blank if you don't want to change it)</p>
    <%= f.password_field :password %>
  </div>

  <div class="field w30">
    <%= f.label :password_confirmation %>
    <%= f.password_field :password_confirmation %>
  </div>
  
    </div>
  </div>

  <div class="actions">
    <button type="submit" class="white">Update</button>
    <%= link_to "Back", :back %>
  </div>

  <hr class="w30" />

  <!-- <p>
    <%= link_to "Delete my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete, :class => 'fdelete' %>
  </p> -->
<% end %>
